package Work;

public class Cylinder extends Circle{
    public double length;

    public Cylinder(double r,double l){
        super(r);
        this.length=l;
    }
    public double findVolume(){
        return super.findArea()*length;
    }
    public String toString(){
        return "{"+"半径:"+radius+" 高:"+length+" 体积:"+findVolume()+"}";
    }
}
